Add an example for accelerators with manual image menuitems
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Mar 2015 01:33:38 +0000 (20:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 Mar 2015 01:36:11 +0000 (20:36 -0500)
commitcbf5b49cb8692d0743706cc5f535e3ed01049c08
treee787317c858bc851974a7d591a8310fe746a767a
parentb3725a455ddd6ecca2e6cac55ac0ebd387f454e5
Add an example for accelerators with manual image menuitems

This is somewhat tricky to work out, so put some example
code here for future reference. The tricky part is that
GtkAccelLabel tries to be smart about hiding the accel
if there's not enough space, so we have to make sure to
pack the label with expand=TRUE and set align=GTK_ALIGN_FILL,
or things won't work.
tests/teststockbuttonmenu.c